#pragma once

#include<iostream>

using namespace std;

class Date
{
public:
	friend ostream& operator<<(ostream& out, Date& dd);
	friend istream& operator>>(istream& in, Date& dd);
	Date(int year = 2023, int month = 10, int day = 28);

	Date(Date& dd);

	void Print()const;

	

private:
	
	int _year;
	int _month;
	int _day;
	//int& aa;


};

ostream& operator<<(ostream& out, Date& dd);

istream& operator>>(istream& in, Date& dd);